import Analysis from '../routes/Dashboard/Analysis';
import Workplace from '../routes/Dashboard/Workplace';

// migrate router
import AttributeList from '../routes/AttributeList';
import OrganProfile from '../routes/OrganProfile';
// add type by step
import AddTypeForm from '../routes/AssetTypeForm/StepForm';
import AddTypeStep2 from '../routes/AssetTypeForm/StepForm/Step2';
import AddTypeStep3 from '../routes/AssetTypeForm/StepForm/Step3';
import AssetTypeList from '../routes/AssetTypeList';
import AssetTypeDetail from '../routes/AssetTypeDetail/';

export const adminNav = [
  {
    name: 'Dashboard',
    icon: 'dashboard',
    path: 'dashboard',
    children: [
      {
        name: '分析页',
        path: 'analysis',
        component: Analysis,
      }, {
        name: '工作台',
        path: 'workplace',
        component: Workplace,
      },
    ],
  }, {
    name: '属性管理',
    path: 'attribute',
    icon: 'tag',
    children: [{
      name: '属性列表',
      path: 'all',
      component: AttributeList,
    }],
  }, {
    name: '类型管理',
    path: 'type',
    icon: 'flag',
    children: [
      {
        name: '新增类型',
        path: 'add',
        component: AddTypeForm,
        children: [
          {
            path: 'confirm',
            component: AddTypeStep2,
          }, {
            path: 'result',
            component: AddTypeStep3,
          },
        ],
      }, {
        name: '所有类型',
        path: 'all',
        component: AssetTypeList,
      }, {
        path: 'detail/:id',
        component: AssetTypeDetail,
        hide: true,
      },
    ],
  }, {
    name: '个人中心',
    path: 'profile',
    icon: 'profile',
    children: [
      {
        name: '我的资料',
        path: 'organ',
        component: OrganProfile,
      },
    ],
  },
];
